import FormInput from "@/components/RenderEngine/components/FormInput/index.vue";
import FormSelect from "@/components/RenderEngine/components/FormSelect/index.vue";
import Form from "@/components/RenderEngine/components/Form/index.vue";
import Vue from "vue";

/**
 * 组件配置
 */
export interface CompSchema {
  // 组件名
  cmpName: string;
  // 子配置
  subSchemas?: CompSchema[];
  name?: string;
}

// 注册组件
export function registerComponents() {
  Vue.component("MeiForm", Form);
  Vue.component("MeiFormInput", FormInput);
  Vue.component("MeiFormSelect", FormSelect);
}
